#-------------------------------------------------
#
# Project created by QtCreator 2012-01-17T16:25:21
#
#-------------------------------------------------

QT -= testlib
QT -= core
QT -= gui

CONFIG   += console
CONFIG   += app_bundle
CONFIG += x86_64
CONFIG -= x86
ICON = CurseOfYigIcon.icns


# Point to your cinder folder so that we know where everything is
#CINDER_HOME = /Users/curtismckinney/build/cinder_0.8.3_mac
CINDER_HOME = /Users/curtismckinney/build/cinder_0.8.3_mac_64

#QMAKE_LFLAGS += -arch i386
QMAKE_LFLAGS += -F/System/Library/Frameworks/Accelerate.framework
QMAKE_LFLAGS += -F/System/Library/Frameworks/QTKit.framework
QMAKE_LFLAGS += -F/System/Library/Frameworks/CoreAudio.framework
QMAKE_LFLAGS += -F/System/Library/Frameworks/CoreVideo.framework
QMAKE_LFLAGS += -F/System/Library/Frameworks/QuickTime.framework
QMAKE_LFLAGS += -F/System/Library/Frameworks/AudioUnit.framework
QMAKE_LFLAGS += -F/System/Library/Frameworks/OpenGL.framework
QMAKE_LFLAGS += -F/System/Library/Frameworks/AudioToolBox.framework
QMAKE_LFLAGS += -F/System/Library/Frameworks/ApplicationServices.framework
QMAKE_LFLAGS += -F/System/Library/Frameworks/Carbon.framework
QMAKE_LFLAGS += -F/System/Library/Frameworks/Cocoa.framework
QMAKE_LFLAGS += -F/System/Library/Frameworks/AppKit.framework
QMAKE_LFLAGS += -F/System/Library/Frameworks/CoreData.framework
QMAKE_LFLAGS += -F/System/Library/Frameworks/Foundation.framework

INCLUDEPATH += $${CINDER_HOME}/include
INCLUDEPATH += $${CINDER_HOME}/lib
INCLUDEPATH += $${CINDER_HOME}/lib/macosx
INCLUDEPATH += $${CINDER_HOME}/boost
INCLUDEPATH += $${CINDER_HOME}/boost/boost
INCLUDEPATH += $${CINDER_HOME}/blocks/msaFluid/include
INCLUDEPATH += $${CINDER_HOME}/blocks/opencv/include
INCLUDEPATH += $${CINDER_HOME}/blocks/osc/include
INCLUDEPATH += $${CINDER_HOME}/blocks/tuio/include
INCLUDEPATH += $${CINDER_HOME}/blocks/osc/lib/macosx

LIBS += -framework Accelerate
LIBS += -framework QTKit
LIBS += -framework CoreAudio
LIBS += -framework CoreVideo
LIBS += -framework QuickTime
LIBS += -framework AudioUnit
LIBS += -framework OpenGL
LIBS += -framework AudioToolbox
LIBS += -framework ApplicationServices
LIBS += -framework Carbon
LIBS += -framework Cocoa
LIBS += -framework AppKit
LIBS += -framework CoreData
LIBS += -framework Foundation

LIBS += $${CINDER_HOME}/blocks/osc/lib/macosx/osc.a
LIBS += $${CINDER_HOME}/lib/libcinder_d.a
LIBS += $${CINDER_HOME}/lib/libcinder.a
LIBS += $${CINDER_HOME}/lib/macosx/libz.a
LIBS += $${CINDER_HOME}/lib/macosx/libpng14.a
LIBS += $${CINDER_HOME}/lib/macosx/libpixman-1.a
LIBS += $${CINDER_HOME}/lib/macosx/libcairo.a
LIBS += $${CINDER_HOME}/lib/macosx/libboost_thread.a
LIBS += $${CINDER_HOME}/lib/macosx/libboost_system.a
LIBS += $${CINDER_HOME}/lib/macosx/libboost_filesystem.a
LIBS += $${CINDER_HOME}/lib/macosx/libboost_date_time.a
LIBS += /usr/local/lib/libboost_signals.a


PRE_TARGETDEPS += $${CINDER_HOME}/blocks/osc/lib/macosx/osc.a \
    $${CINDER_HOME}/lib/libcinder_d.a \
    $${CINDER_HOME}/lib/libcinder.a \
    $${CINDER_HOME}/lib/macosx/libz.a \
    $${CINDER_HOME}/lib/macosx/libpng14.a \
    $${CINDER_HOME}/lib/macosx/libpixman-1.a \
    $${CINDER_HOME}/lib/macosx/libcairo.a \
    $${CINDER_HOME}/lib/macosx/libboost_thread.a \
    $${CINDER_HOME}/lib/macosx/libboost_system.a \
    $${CINDER_HOME}/lib/macosx/libboost_filesystem.a \
    $${CINDER_HOME}/lib/macosx/libboost_date_time.a \
    /usr/local/lib/libboost_signals.a

DEPENDPATH += $${CINDER_HOME}/blocks/osc/lib/macosx \
    $${CINDER_HOME}/lib \
    $${CINDER_HOME}/lib/macosx

HEADERS += \
    oscpack/osc/MessageMappingOscPacketListener.h \
    oscpack/osc/OscException.h \
    oscpack/osc/OscHostEndianness.h \
    oscpack/osc/OscOutboundPacketStream.h \
    oscpack/osc/OscPacketListener.h \
    oscpack/osc/OscPrintReceivedElements.h \
    oscpack/osc/OscReceivedElements.h \
    oscpack/osc/OscTypes.h \
    oscpack/ip/IpEndpointName.h \
    oscpack/ip/NetworkingUtils.h \
    oscpack/ip/PacketListener.h \
    oscpack/ip/TimerListener.h \
    oscpack/ip/UdpSocket.h \
    ExtOSCThread.h \
    CoYPacketListener.h \
    SynthObject.h \
    Resource.h \
    Global.h \
    Chat.h \
    CoYCursor.h

SOURCES += \
    oscpack/osc/OscOutboundPacketStream.cpp \
    oscpack/osc/OscPrintReceivedElements.cpp \
    oscpack/osc/OscReceivedElements.cpp \
    oscpack/osc/OscTypes.cpp \
    oscpack/ip/IpEndpointName.cpp \
    main.cpp \
    ExtOSCThread.cpp \
    CoYPacketListener.cpp \
    SynthObject.cpp \
    Chat.cpp \
    CoYCursor.cpp

!win32 {
    SOURCES += \
    oscpack/ip/posix/UdpSocket.cpp \
    oscpack/ip/posix/NetworkingUtils.cpp \
}

win32 {
    SOURCES += \
    oscpack/ip/win32/UdpSocket.cpp \
    oscpack/ip/win32/NetworkingUtils.cpp
}

RESOURCES +=

OTHER_FILES += \
    resources/blur_vert.glsl \
    resources/blur_frag.glsl \
    resources/texture_frag.glsl \
    resources/texture_vert.vert
